<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    nav {
        width: 300px;
    }
    
    li {
        background-color: rgba(12, 145, 179, 0.5);
        height: 35px;
        line-height: 35px;
        overflow: hidden;
    }
    
    li:nth-of-type(2n) {
        background-color: rgba(12, 145, 179, 0.7);
    }
    
    li:hover {
        background: orange;
    }
    
    a {
        text-decoration: none;
        display: block;
        color: #fff;
        height: 35px;
        padding: 0 38px;
    }
</style>

<body>
    <nav>
        <ul>
            <li><a href="#">JavaEE教程</a></li>
            <li><a href="#">Android教程</a></li>
            <li><a href="#">PHP教程</a></li>
            <li><a href="#">UI设计教程</a></li>
            <li><a href="#">iOS教程</a></li>
            <li><a href="#">Web教程</a></li>
            <li><a href="#">C/C++教程</a></li>
        </ul>
    </nav>
</body>

</html>